package coml.jiyun.hp.reviewtopic.presenter;


import coml.jiyun.hp.reviewtopic.base.BasePresenter;
import coml.jiyun.hp.reviewtopic.bean.NaviBean;
import coml.jiyun.hp.reviewtopic.model.NaviModel;
import coml.jiyun.hp.reviewtopic.net.ResultCallBack;
import coml.jiyun.hp.reviewtopic.view.NaviView;

public class NaviPresenter extends BasePresenter<NaviView> {

    private NaviModel naviModel;

    @Override
    protected void initModel() {
        naviModel = new NaviModel();
        addModel(naviModel);
    }
    public void getNavi(){
        naviModel.getNavi(new ResultCallBack<NaviBean>() {
            @Override
            public void onSuccess(NaviBean naviBean) {
                mView.setNavi(naviBean);
            }

            @Override
            public void onFail(String msg) {

            }
        });
    }
}
